<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: guosheng < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace plugins\crawler\validate;

use think\Validate;

class CrawlerUrlValidate extends Validate
{
    protected $rule = [
        'listurl'                 => 'require',
        'crawler_rule_id'         => 'require|integer',
    ];

    protected $message = [
        'listurl.require'             => '列表采集网址不能为空',
        'crawler_rule_id.integer'     => '非法规则id',
    ];

}